package com.wenyang.service.impl;

import com.wenyang.dao.CategoryDao;
import com.wenyang.entity.TabCategory;
import com.wenyang.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author Zx
 * @Date 2024/3/20 9:46
 * @Version 1.0
 */
@Service
public class CategoryServiceImpl implements CategoryService {

    @Autowired
    private CategoryDao categoryDao;

    /**
     * 查询所有类别信息
     * @return
     */
    @Override
    public List<TabCategory> findAll() {
        return categoryDao.findAll();
    }
}
